import 'package:nyh_motorcade_app/entity/unread_message_count_entity.dart';

unreadMessageCountEntityFromJson(UnreadMessageCountEntity data, Map<String, dynamic> json) {
	if (json['msgCount'] != null) {
		data.msgCount = json['msgCount'] is String
				? int.tryParse(json['msgCount'])
				: json['msgCount'].toInt();
	}
	return data;
}

Map<String, dynamic> unreadMessageCountEntityToJson(UnreadMessageCountEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['msgCount'] = entity.msgCount;
	return data;
}